<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>
            Fly社区
        </title>
       <link rel="stylesheet" href="/php2016-10-05/10-27/flyzzw/Public/layui/font/font_1466258017_0700355.css">
        <link rel="stylesheet" href="/php2016-10-05/10-27/flyzzw/Public/layui/css/layui.css">
        <link rel="stylesheet" href="/php2016-10-05/10-27/flyzzw/Public/layui/css/global.css">
        <link rel="stylesheet" data-href="http://res.layui.com/css/fly/stretch.css?t=1476955288388"
        class="fly-style">
    </head>

    <body>
        <div class="header">
            <div class="main">
                <a class="logo" href="<?php echo U('home/index/index');?>" title="Fly">
                    Fly社区
                </a>
                <div class="nav">
                    <a href="<?php echo U('home/index/jie');?>">
                        <i class="iconfont icon-wenda">
                        </i>
                        问答
                    </a>
                    <a href="{http://www.layui.com/}">
                        <i class="iconfont icon-ui">
                        </i>
                        框架
                    </a>
                </div>
                <?php if (!isset($_SESSION['uid'])) { ?>
                    <div class="nav-user">
                        <a class="unlogin" href="/user/login/">
                            <i class="iconfont icon-touxiang">
                            </i>
                        </a>
                        <span>
                            <a href="<?php echo U('home/login/index');?>">
                                登入
                            </a>
                            <a href="<?php echo U('home/register/index');?>">
                                注册
                            </a>
                        </span>
                        <p class="out-login">
                            <a href="<?php echo U('home/login/qqlogin');?>" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})"
                            class="iconfont icon-qq" title="QQ登入">
                            </a>
                            <a href="http://fly.layui.com:8098/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})"
                            class="iconfont icon-weibo" title="微博登入">
                            </a>
                        </p>
                     </div>
                <?php  }else{ ?>
                    <div class="nav-user">
                            <a class="avatar" href="<?php echo U('home/usercore/index');?>">
                                <?php if (substr($_SESSION['face'],0,4)=='http') { ?>
                                    <img src="<?php echo $_SESSION['face'] ?>">
                               <?php }else{ ?>
                                    <img src="/php2016-10-05/10-27/flyzzw/<?php echo $_SESSION['face'] ?>">
                                <?php } ?>
                                <cite>
                                    <?php echo $_SESSION['nikename']; ?>
                                </cite>
                            </a>
                            <div class="nav">
                                <a href="<?php echo U('home/usercore/set');?>">
                                    <i class="iconfont icon-shezhi">
                                    </i>
                                    设置
                                </a>
                                <a href="<?php echo U('home/login/out');?>">
                                    <i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;">
                                    </i>
                                    退了
                                </a>
                    </div>
                </div>
               <?php } ?>
                
               

                
            </div>
        </div>
    <div class="fly-home" style="background-image: url();">
    <img src="/php2016-10-05/10-27/flyzzw/<?php echo $res[0]['face'] ?>">
    <h1>
        <?php echo $res[0]['nikename']; ?>
        <?php if ($res[0]['sex']=='女'){ ?>
            <i class="iconfont     icon-nv    "></i>
        <?php }else if($res[0]['sex']=='男'){ ?>
            <i class="iconfont     icon-nan    "></i>
           <?php } ?>      
    </h1>
    <div class="layui-main">
        <p style="display: inline-block; max-width: 800px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #999; margin-top: 10px;">
            （ <?php echo $res[0]['resume'] ?> ）
        </p>
    </div>  
</div>





<div class="main layui-clear">
    <div class="fly-main layui-clear">
        <div class="home-nav">
            <a href="">
                主页
            </a>
            <!--<a href="">求解</a>-->
        </div>
        <div class="home-left">
            <h2>
                最近发表的求解
            </h2>
            <ul class="jie-row">
                <?php if (empty($que)){ ?>
                    <li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                    <i style="font-size:14px;">
                        没有发表任何求解
                    </i>
                </li>
                <?php  }else{ ?>
                    <?php foreach ($que as $v) { ?>
                        <li>
                            <a href="<?php echo U('home/que/index');?>/id/<?php echo $v['id'] ?>" >
                               <?php echo $v['title']; ?>
                            </a>
                            <i>
                                <?php echo $v['create_time']; ?>
                            </i>
                            <em>
                                <?php echo $v['view_num']; ?>阅/<?php echo $v['answer_num']; ?>答
                            </em>
                        </li>
                    <?php } ?>

                    <?php } ?>
                
                
            </ul>
            <h2 style="margin-top:30px;">
                最近的回答
            </h2>
            <ul class="home-jieda">
                <?php foreach ($ans as $v) { ?>
                    <?php  if (!empty($v['content'])) { ?>
                        <li>
                            <p>
                                <span>
                                    <?php echo $v['create_time']; ?>
                                </span>
                                在
                                <a href="<?php echo U('home/que/index');?>/id/<?php echo $v['id']?>" target="_blank">
                                    <?php echo $v['title']; ?>
                                </a>
                                中回答：
                            </p>
                            <div class="home-dacontent">
                                <?php echo $v['content']; ?>
                            </div>
                        </li>
                    <?php }else{ ?>
                        <li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                            <span>
                                没有回答任何问题
                            </span>
                        </li>
                       <?php } ?>
                <?php }?>
            </ul>
        </div>
        <div class="home-right">
            <ul class="home-info">
                <li>
                    <i class="iconfont icon-zuichun">
                    </i>
                    拥有飞吻：
                    <span style="color: #FF7200;">
                        <?php echo $res[0]['kiss'] ?>
                    </span>
                </li>
                <li>
                    <i class="iconfont icon-shijian">
                    </i>
                    加入时间：
                    <span>
                        <?php echo $res[0]['create_time'] ?>
                    </span>
                </li>
                <li>
                    <i class="iconfont icon-chengshi">
                    </i>
                    城市：
                    <span>
                         <?php echo $res[0]['city'] ?>
                    </span>
                </li>
            </ul>
            <!-- layer-300*250 -->
            <ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px"
            data-ad-client="ca-pub-6111334333458862" data-ad-slot="2182025432">
            </ins>
        </div>
    </div>
</div>
        <div class="footer">
            <p>
                <a href="http://fly.layui.com/">
                    Fly社区
                </a>
                2016 &copy;
                <a href="http://www.layui.com/">
                    layui.com
                </a>
                <a href="https://github.com/layui/fly" target="_blank">
                    获取Fly社区模版
                </a>
            </p>
            <p>
                <a href="http://fly.layui.com/auth/get" target="_blank">
                    产品授权
                </a>
                <a href="http://fly.layui.com/jie/3147.html" target="_blank">
                    VIP说明
                </a>
                <!--<a href="javascript:layer.msg('暂无此页');">关于我们</a>-->
                <a href="http://sentsin.com/cooperation.html" target="_blank">
                    商务合作
                </a>
                <a href="http://weibo.com/SentsinXu" target="_blank" rel="nofollow">
                    微博
                </a>
                <a href="http://fly.layui.com/jie/2461.html" target="_blank">
                    微信公众号
                </a>
            </p>
        </div>
    </body>

</html>